//
//  JQActionCell.m
//  JQLive
//
//  Created by Bruce on 2020/8/19.
//  Copyright © 2020 mlkq. All rights reserved.
//

#import "JQActionCell.h"
@interface JQActionCell()
@property (nonatomic, strong) UILabel *label;
@end

@implementation JQActionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)initView{
    UILabel *label = [[UILabel alloc] init];
    [self.contentView addSubview:label];
    self.label = label;
    MY_WEAK;
//    label.frame = self.contentView.bounds;
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        MY_STRONG;
        make.left.right.bottom.top.equalTo(strongSelf.contentView);
    }];
    label.font = [UIFont systemFontOfSize:15];
    label.textColor = MYColor3;
    label.textAlignment = NSTextAlignmentCenter;
    
    UIView *lineV = [[UIView alloc] init];
    [self.contentView addSubview:lineV];
    
    [lineV mas_makeConstraints:^(MASConstraintMaker *make) {
        MY_STRONG;
        make.bottom.left.right.equalTo(strongSelf.contentView);
        make.height.mas_equalTo(1);
    }];
    lineV.backgroundColor = kColorWithHex(0xF1F2F6);
    
}
- (void)setDataWith:(NSString *)labelStr{
    self.label.text = labelStr;
}
@end
